//
//  TKIMChartView.h
//  TKIM
//
//  Created by liupm on 15/7/27.
//  Copyright (c) 2015年 liupm. All rights reserved.
//

#import <UIKit/UIKit.h>

#import "TKIMDelegate.h"
#import "TKIM.h"
#import "UIResponder+Router.h"
#import "TKIMChatViewCell.h"
#import "TKIMToolBar.h"
#import "TKIMTableView.h"
#import "TKIMKeFuMenuView.h"
#import "TKIMEvaluateView.h"


typedef void(^actionNav)(NSInteger state);

@interface TKIMChatView : UIView

@property(nonatomic,weak) id<TKIMMessageDelegate>delegate;
-(instancetype)initWithFrame:(CGRect)frame channel:(NSUInteger)channel type:(TKIMToolBarType)toolBarType;
@property(nonatomic,strong) TKIMTableView *tableView;
@property(nonatomic,strong) TKIMKeFuMenuView* kefuMenu;
@property(nonatomic,strong) TKIMEvaluateView* evaluateView;
@property(nonatomic,strong) TKIMToolBar *toolBar;//工具栏

@property(nonatomic,assign) BOOL iskefu;
/**
 *  @Author lpm, 15-07-28 18:07:41
 *
 *  @brief  接收服务器消息
 *
 *  @param msg
 */
-(void)receiveMsg:(id)msg;
/**
 *  @Author lpm, 15-07-28 18:07:41
 *
 *  @brief  更新消息
 *
 *  @param msg
 */
-(void)updateMsg:(TKIMMessage *)msg;
/**
 *  @Author lpm, 15-07-29 10:07:04
 *
 *  @brief  发送系统消息
 *
 *  @param message
 */
-(void)sendSysMsg:(NSString *)message;
/**
 *  @Author lpm, 15-07-29 16:07:38
 *
 *  @brief  收起键盘
 */
-(void)resignInputFirstResponder;
/**
 *  @Author lpm, 15-07-28 18:07:41
 *
 *  @brief  刷新列表
 *
 *  @param msg
 */
-(void)reloadList:(NSMutableArray *)dataList isNeedTime:(BOOL)isneedtime;
@property (nonatomic,strong)NSArray * menusArray;

@end

